using System.ComponentModel.DataAnnotations;
using Framework.SqlDataAccess.Model;

namespace Kaysite.Model
{
    public class Service : KaysiteModel
    {
        [DBMaping(PrimaryKey = true)]
        [Required]
        public int ServiceID { get; set; }

        [DBMaping]
        [Required]
        public int ServiceGroupID { get; set; }

        [DBMaping]
        [Required]
        [StringLength(512)]
        [DBFieldInfo(IsName = true)]
        public string ServiceName { get; set; }

        [DBMaping]
        public string Description { get; set; }

        [DBMaping]
        [Required]
        public eDisplayOption DisplyInMain { get; set; }

        public Service()
        {
            DisplyInMain = eDisplayOption.Hide;
        }
    }
}